package adapter.duck;

import adapter.turkey.Turkey;



/**
 * 
 * @author xiaoyang
 * change turkey to duck
 * Object Adapter
 */
public class TurkeyObjectAdapter implements Duck {
	Turkey turkey;
	
	public TurkeyObjectAdapter(Turkey turkey){
		this.turkey = turkey;
	}

	@Override
	public void quack() {
		turkey.gobble();
	}

	@Override
	public void fly() {
		turkey.fly();
	}

}
